package models

import (
	"time"

	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `json:"username"`
	Password string `json:"password"`
	Email    *string
	Birthday *time.Time //默认是0
	Phone    *string

	PostCount uint32
	Posts     []*Post
}
